import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const state = {
  isLoading: false,
}

export const store = new Vuex.Store({})

store.registerModule('vux',{
  state,
  mutations:{
    updateLoadingStatus (state, payload) {
      state.isLoading = payload.isLoading
    },
  }
})